﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Knlght.Domain
{
    /// <summary>
    /// 分页列表
    /// </summary>
    public class PagingList<T>
    {
        public PagingList()
        {

        }
        public PagingList(List<T> list, int totalModels, int totalPages)
        {
            Models = list;
            TotalModels = totalModels;
            TotalPages = totalPages;
        }
        /// <summary>
        /// 对象集合
        /// </summary>
        public List<T> Models { get; set; }
        /// <summary>
        /// 总对象数
        /// </summary>
        public int TotalModels { get; set; }
        /// <summary>
        /// 总页数
        /// </summary>
        public int TotalPages { get; set; }
    }
}
